home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gui / gtldv374.lha / GadUtil / Docs / AutoDocs / 06.GU_CountNodes < prev    next >
Text File  |  1996-05-14  |  939b  |  31 lines

  1. gadutil.library/GU_CountNodes                   gadutil.library/GU_CountNodes
  2.  
  3.    NAME
  4.     GU_CountNodes -- Count number of nodes in a list.
  5.  
  6.    SYNOPSIS
  7.     numnodes = GU_CountNodes(list)
  8.     D0                       A0
  9.  
  10.     ULONG GU_CountNodes(struct List *);
  11.  
  12.    FUNCTION
  13.     This function will count the number of nodes attached to a list.
  14.  
  15.    INPUTS
  16.     list - a pointer to the list to get the number of nodes in
  17.  
  18.    RESULT
  19.     numnodes - Number of nodes that was in the list for the moment.
  20.                Note that count starts from one and not from zero!
  21.  
  22.    NOTES
  23.     Use Forbid() and Permit() around a call to this function if you
  24.     are using it on a list that can change at any time (e.g. a list
  25.     that wasn't created by yourself). This function may not be accurate
  26.     when you are using it on a system list.
  27.  
  28.    SEE ALSO
  29.     GU_AddTail(), GU_ClearList(), GU_DetachList(), GU_AttachList()
  30.     GU_FindNode(), GU_NodeUp(), GU_NodeDown(), GU_NewList(), GU_SortList()
  31.